package com.bc66.tiger.bizsys.menucategories.dto;


import com.bc66.tiger.bizsys.menucategories.model.MenuCategoriesBean;
import com.bc66.tiger.framework.util.beanutils.BeanUtils;

public class MenuCategoriesBeanDtoUtil {

	public static MenuCategoriesBeanDto convertToDto(MenuCategoriesBean detail){
		if (null == detail) {
			return null;
		}
		MenuCategoriesBeanDto dto = new MenuCategoriesBeanDto();
		BeanUtils.copyProperties(dto,detail);
		return dto;
	}

	public static MenuCategoriesBean convertToModel(MenuCategoriesBeanDto dto){
		if (null == dto) {
			return null;
		}
		MenuCategoriesBean detail = new MenuCategoriesBean();
		BeanUtils.copyProperties(detail,dto);
		return detail;
	}
	
}
